import axios from 'axios';

const axiosInstance = axios.create({
  timeout: 50000000,
  headers: {
    'Content-Type': 'application/json',
  },
  baseURL: 'https://www.dianxiaomi.com/',
});

axiosInstance.interceptors.response.use(
  (response) => {
    return response.data;
  },
  (error) => {
    return Promise.reject(error);
  },
);

export { axiosInstance as request };
